﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Mon, 23 Jan 1978 20:52:30 GMT">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传照片</title>
<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px;
	font-weight: bold;
}
td{
background-color:#FFFFFF;
font-size:12px;
}

body {
	background-color: #f1fefa;
}
-->
</style>
<script>
function pageOnload(){
	document.all.img.src = window.dialogArguments.EditForm.file.value;
}
function pageClose(){
	window.returnValue="";
	window.close();
}
function submitForm(){
	if(EditForm.title.value=="")
	{
		alert("名称不能为空!");
		return false;
	}
	if(EditForm.dirid.value=="")
	{
		alert("请选择所属分类!");
		return false;
	}
	window.dialogArguments.EditForm.dirid.value = document.EditForm.dirid.value;
	window.dialogArguments.EditForm.circlesn.value = document.EditForm.circlesn.value;
	window.dialogArguments.EditForm.title.value = document.EditForm.title.value;
	window.dialogArguments.EditForm.intro.value = document.EditForm.intro.value;
	window.returnValue="ok";
	window.close();
}
</script>
</head>
<base target="_self">
<body onload="pageOnload()" style="margin-left:15px;">
<table height="180" border="0" cellpadding="0" cellspacing="10" id="table" bgcolor="#f1fefa">
    <tr>
	<td valign="middle" bgcolor="#f1fefa">
  <table width="277" height="180" border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
    <form action="blogPhoto.do" method="post" enctype="multipart/form-data" name="EditForm" id="EditForm" onsubmit="javascript:return submitForm();">
      <input type="hidden" name="parameter"  value="save" />
      <tr>
        <td height="25" colspan="2" bgcolor="ffffdd"><div align="left"><span  class="font06"><img  src="/images/dc_img14.gif" /><strong>上传照片</strong></span></div></td>
      </tr>
      <tr>
        <td width="85" height="22" align="right"><span  class="font05">* </span>名&nbsp;&nbsp;&nbsp;&nbsp;称：</td>
        <td width="192"><input name="title" class="line01" id="title" size="15" maxlength="50" value="$!title" /></td>
      </tr>
      <tr>
        <td align="right" height="22">所属目录：</td>
        <td height="22">
		<select name="dirid" id="dirid">
		<option value="">选择影集</option>
		$!TagUtil.options($photoService.queryPhotoDir($currentUser.userName,1,-1).result,"cid","title",$dirid)
        </select>
		</td>
      </tr>
	  <tr>
	  <td align="right">
	  发表到圈子：
	  </td>
	  <td><select name="circlesn" id="circlesn">
	  <option value="">选择圈子</option>
	  $!TagUtil.options($circleService.queryAllUserCircle($currentUser.userName).result,"cid","title",$circlesn)
	    </select>
	  </td>
	  </tr>
      <tr>
        <td height="40" align="right" valign="top">介&nbsp;&nbsp;&nbsp;&nbsp;绍：</td>
        <td height="40" valign="top"><textarea name="intro" rows="3"value="$!intro"></textarea></td>
      </tr>
      <tr align="center">
        <td colspan="2" height="20"><input class="input" type="submit" value="提交上传" name="Submit" />
          &nbsp;&nbsp;&nbsp;
          <input class="input" type="reset" value="关闭窗口" name="reset" onclick="pageClose()" /></td>
      </tr>
    </form>
  </table>
  </td>

<td valign="middle" bgcolor="#f1fefa">
  <table width="161" height="180" border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc" id="table">
    <tr bgcolor="#ffffdd">
      <td height="27" bgcolor="#ffffdd"><div align="right"><span class="STYLE1">◇预览图片◇</span></div></td>
    </tr>
    <tr>
      <td id="td"><div align="center">
	  <img id="img" src="" width="120" height="120 "/></div></td>
    </tr>
  </table>
  </td>
    </tr>
</table>
</body>
</html>
